package com.elastic.proxy;

public class AccessValidator {


    public boolean validate(String userId){
        System.out.println("在数据库中验证'"+userId+"'是不是合法用户？");
        if (userId.equalsIgnoreCase("杨过")){
            System.out.println("'"+userId+"'登录成功！");
            return true;
        }else {
            System.out.println("'"+userId+"'登录失败！");
            return false;
        }
    }

}
